package cn.no7player.model;

import cn.no7player.ientity.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class UserEntity extends BaseEntity {

    private String userName;
    //@JSONField(serialize=false) //serialize:是否需要序列化属性.注解之后不返回的该属性的值，在项目中我们有些字段是不想返回，就可以用这个注解来实现
    private Integer age;
    private String password;
    private String birthday;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")   //FastJson 处理时间
    private Date createTime;//时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss",serialize=false)   //FastJson 处理时间
    private Date updateTime;//时间

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


}
